package com.ujs.service.impl;

import com.ujs.dao.MemberDao;
import com.ujs.pojo.Member;
import com.ujs.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberserviceImpl implements MemberService {
    @Autowired
    private MemberDao memberDao;
    @Override
    public List<Member> findAll(){
        return  memberDao.findAll();
    }
    @Override
    public Member findById(String id){
        return  memberDao.getOne(id);
    }
    @Override
    public void save(Member member){
        memberDao.save(member);
    }
    @Override
    public void deleteById(String id){
        memberDao.deleteById(id);
    }

}
